package view;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.SwingUtilities;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
import javax.swing.WindowConstants;


public class RechazarEvento extends javax.swing.JFrame {
		
	private static final long serialVersionUID = 1L;
	private JLabel jLUsuario;
	private JButton jBConfirmar;
	private JTextField jTError;

	private JButton jBCancelar;

	
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				
				try {
					UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
				} catch (ClassNotFoundException e) {
					e.printStackTrace();
				} catch (InstantiationException e) {
					e.printStackTrace();
				} catch (IllegalAccessException e) {
					e.printStackTrace();
				} catch (UnsupportedLookAndFeelException e) {
					e.printStackTrace();
				}		
				
				RechazarEvento inst = new RechazarEvento();
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
			}
		});
	}
	
	public RechazarEvento() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			setTitle("Rechazar Evento");
			getContentPane().setLayout(null);
			
			{
				jLUsuario = new JLabel();
				getContentPane().add(jLUsuario);
				jLUsuario.setText("Esta seguro que desea rechazar este evento?");
				jLUsuario.setBounds(23, 17, 230, 16);
			}
			
			
			
			{
				jBCancelar = new JButton();
				getContentPane().add(jBCancelar);
				jBCancelar.setText("Cancelar");
				jBCancelar.setBounds(139, 63, 90, 23);
				jBCancelar.addActionListener(new ActionListener() {
					
					public void actionPerformed(ActionEvent e) {
						setVisible(false);
					}
				});
				
			}
			{
				jTError = new JTextField();
				getContentPane().add(jTError);
				jTError.setText("Debe completar todos los datos");
				jTError.setBounds(34, 265, 185, 23);
				jTError.setVisible(false);
				jTError.setSelectedTextColor(new java.awt.Color(255,0,0));
				jTError.setBackground(new java.awt.Color(192,192,192));
				jTError.setEditable(false);
				jTError.setOpaque(false);
				jTError.setForeground(new java.awt.Color(255,0,0));
				jTError.setFont(new java.awt.Font("Segoe UI",1,12));		
			}
			{
				jBConfirmar = new JButton();
				getContentPane().add(jBConfirmar);
				jBConfirmar.setText("Confirmar");
				jBConfirmar.setBounds(30, 63, 90, 23);
				jBConfirmar.addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent evt) {
						jBConfirmarActionPerformed(evt);
					}
				});
			}

			pack();
			this.setSize(273, 139);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
	private void jBConfirmarActionPerformed(ActionEvent evt) {
		System.out.println("jBConfirmar.actionPerformed, event="+evt);
		//TODO add your code for jBConfirmar.actionPerformed
	}

}
